package cn.com.huzo.model.entities.trade;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 化检日记帐主记录实体类
 *
 * @author 吴旭
 */
public class InspectionJournalHeaderEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -7351050126226094142L;
    private Long HeaderId;
    private String NoOfBill;                 // 化检批号
    private String NoOfStyle;                // 款号
    private String QualityInspectionUnit;    // 检验单位
    private String OverFlag;
    private String Description;              // 备注

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public String getNoOfBill() {
        return NoOfBill;
    }

    public void setNoOfBill(String NoOfBill) {
        this.NoOfBill = NoOfBill;
    }

    public String getNoOfStyle() {
        return NoOfStyle;
    }

    public void setNoOfStyle(String NoOfStyle) {
        this.NoOfStyle = NoOfStyle;
    }

    public String getQualityInspectionUnit() {
        return QualityInspectionUnit;
    }

    public void setQualityInspectionUnit(String QualityInspectionUnit) {
        this.QualityInspectionUnit = QualityInspectionUnit;
    }

    public String getOverFlag() {
        return OverFlag;
    }

    public void setOverFlag(String OverFlag) {
        this.OverFlag = OverFlag;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof InspectionJournalHeaderEntity)) {
            return false;
        }

        final InspectionJournalHeaderEntity that = (InspectionJournalHeaderEntity) o;

        return new EqualsBuilder()
                .append(this.getHeaderId(), that.getHeaderId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + getHeaderId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
